package com.ycode.bang.anbang.utils;

/**
 * Created by wcx on 15/11/15.
 */
public class ErrorMessage {
    private static String message = "";

    public static String getErrorMessage(String code) {
        switch (Integer.parseInt(code)) {
            case 0:

                break;
            case 1:
                message = "参数丢失";
                break;
            case 2:
                message = "口令丢失";
                break;
            case 3:
                message = "无效口令";
                break;
            case 4:
                message = "必填参数缺失";
                break;
            case 6:
                message = "操作超时";
                break;
            case 7:
                message = "操作失败";
                break;
            case 10000:
                message = "用户名缺失";
                break;
            case 10001:
                message = "密码缺失";
                break;
            case 10002:
                message = "验证码缺失";
                break;
            case 10003:
                message = "手机号码缺失";
                break;
            case 10007:
                message = "用户已存在";
                break;
            case 10009:
                message = "手机号码已存在";
                break;
            case 10010:
                message = "用户名格式不正确";
                break;
            case 10011:
                message = "密码格式不正确";
                break;
            case 10014:
                message = "用户名或密码不正确";
                break;
            case 10016:
                message = "验证码不正确";
                break;
            case 10017:
                message = "用户手机设备类别参数缺失";
                break;
            case 10018:
                message = "用户手机设备类别不正确";
                break;
            case 10020:
                message = "用户没有默认车辆";
                break;
            case 10021:
                message = "用户尚未加入任何单位";
                break;
            case 20001:
                message = "短信发送手机号不正确";
                break;
            case 20002:
                message = "短信发送失败";
                break;
            case 50000:
                message = "车环MAC不存在";
                break;
            case 50001:
                message = "车环已经被绑定";
                break;
            case 50002:
                message = "车环尚未绑定车辆";
                break;
            case 60000:
                message = "汽车不存在";
                break;
            case 60001:
                message = "车牌号重复";
                break;
            case 60002:
                message = "车辆已经被绑定";
                break;
            case 70000:
                message = "预约日期不在服务期限内";
                break;
            case 80000:
                message = "申请重复";
                break;
            case 80001:
                message = "资料不全";
                break;
            case 80002:
                message = "业主或联系人不存在";
                break;
            case 80003:
                message = "guest保存出错";
                break;
            case 80004:
                message = "密码输入不一致";
                break;
            case 80005:
                message = "密码错误";
                break;
            case 80006:
                message = "默认车辆信息不全";
                break;
            case 80007:
                message = "真实姓名信息不全";
                break;
            case 80008:
                message = "单位信息不全";
                break;
            case 80009:
                message = "有效证件信息不全";
                break;

        }
        return message;
    }
}
